Marker

@Serializable
data class Marker @JvmOverloads constructor(    val size: Double? = null,     val foregroundColor: MPIOptions.FloatingLabelAppearance.Color? = null,     val backgroundColor: MPIOptions.FloatingLabelAppearance.Color? = null,     val icon: String? = null,     val iconVisibilityThreshold: Double? = null,     val iconFit: MPIOptions.FLOATING_LABEL_MARKER_ICON_FIT? = null,     val iconPadding: Double = 4.0,     val iconScaleInterpolation: Boolean? = null,     val iconSize: Double? = 10.0)

Constructors

Link copied to clipboard
constructor(    size: Double? = null,     foregroundColor: MPIOptions.FloatingLabelAppearance.Color? = null,     backgroundColor: MPIOptions.FloatingLabelAppearance.Color? = null,     icon: String? = null,     iconVisibilityThreshold: Double? = null,     iconFit: MPIOptions.FLOATING_LABEL_MARKER_ICON_FIT? = null,     iconPadding: Double = 4.0,     iconScaleInterpolation: Boolean? = null,     iconSize: Double? = 10.0)

Properties

Link copied to clipboard

Background color of the marker

Link copied to clipboard

Foreground color of the marker

Link copied to clipboard
val icon: String? = null

SVG of icon to place inside Floating Label

Link copied to clipboard

How the icon should fit inside the marker. By default, this is not set and the icon will be centered inside the marker.

Link copied to clipboard
val iconPadding: Double = 4.0

Padding around the icon, in pixels.

Link copied to clipboard

Whether the icon should scale with the zoom level.

Link copied to clipboard
val iconSize: Double? = 10.0

Size of bounding box of the icon.

Link copied to clipboard

Defines when the icon becomes visible relative to the current zoom level. Anything below 0 will result in icons never being shown. 0 ensures icons show up at maxZoom (fully zoomed in) 1 ensures they always be shown

Link copied to clipboard
val size: Double? = null

Size of the marker in pixels